package com.fu.edu.manager.entry;

import com.fu.edu.manager.controller.OtherStudentController;
import com.fu.edu.manager.controller.StudentController;
import com.fu.edu.manager.controller.TeacherController;

import java.util.Scanner;

/**
 * @author 付大大
 * @create 2021-01-06 10:52
 */
public class InfoManageEntry {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);


        while (true) {
            //主菜单搭建
            System.out.println("--------欢迎来到黑马信息管理系统--------");
            System.out.println("请输入您的选择: 1.学生管理  2.老师管理  3.退出");
            String choice = scanner.next();
            switch (choice) {
                case "1":
                    OtherStudentController otherStudentController = new OtherStudentController();
                    otherStudentController.start();
                    break;
                case "2":
                    TeacherController teacherController = new TeacherController();
                    teacherController.start();
                    break;
                case "3":
                    System.exit(0);
                    break;
                default:
                    System.out.println("您的输入有误，请重新输入");
                    break;
            }
        }


    }
}
